removed unwanted code from appdelegate