added more functions and html and erb