removed hardcoding, added parameter to the homepage