Added widget funtionality but not working on rotate screen