styling and created main controller