make the views to use python dict to run the function that matchs the
user input