added functions for bad smell
added new layout to the page