Made some changes for my needs, it could be usefull

- made dialogs more iOS7 style
- change width of dialog for iPad version
- resolve issue with wrong shadow layer for iOS 6
- made refactoring
- add #define constants
- add some comments