added buttons and bottom bar, repaired panning and rotating