Added return and when invalid action is sent then 404 is rendered