Added smaller buttons and condition for permissions