fixed errors in home and main file