adds login and buttongrid to ui