working on portrait mode