removed xib file and fixed call to deprecated methods