added phonegap to index, cleaned controllers