made lot of refactoring and the app. upgraded gradle version as well

Did lot of refactoring for the views

Have a look and comment for the things u do not understand. I will reply to them.

You can test this branch on your device as well.

I have tested this on samsung note 3 works great. will test on other phones soon.