ramadhaan

Keeping the light on in the room where one's mother is sleeping to engage in ibaadat

Q: During Ramadaan my mother was sleeping in the same room with me and I wanted to stay up for the whole night in ibaadat. I couldn't leave the room due to purdah and my mother said that she does not mind having the light on, so I left it on for a long while. Was this correct? 2. What takes preference, awaabeen salaah, or helping in the kitchen?