removing unnecessary comments and making html only settings