Small improvments on profile and templates for apache frontend