added segue and fixed hidden buttons