Applying template and fix overall screen