Added main and single pages controllers