Made gallery mode and keyboard improvements