First view load by AJAX and some fixes in layouts