set timer and layout working