Merging approve/unapprove functions into a single one