buttons in ui almost working