Cleaned up rendering code of hints