View code refactored. Closes #378 

Refactored code follow the above rules:
- All code related with layout is at LayoutSubviews or ViewDidLayoutSubviews method
- Views only sets subview frames and not their own frames
- All layout code is based on Bounds in place of Frame rectangle.

Additionally:
- Deleted some unneeded code and apply format rules. fixes #378