fixed bug with alert button not working in day view