button visibility, updated buttons

functions to hide the appropriate buttons on a certain click, updated
fold button to split since we won’t have the fold option
full of errors not sure if works sorry, can always revert back