changed template to grid template