Controllers code and button click functions have been added