created 2 actions for controller