Handle non-ajax and non-post requests to ajax view