added bootstrap and fixed some error handling in home controller