move master tempaltes into frontend module