Made buttons work in portrait mode