Setting main view style programmatically