added a refreshController and make the buttons hide