Added actions to ui buttons