added styles and fixed console bug