Removed code from appdelegate