minor refactoring
added gradient view, fixed overlay orientation