Move home page action to the pages controller