Building settings window and adding cog