made homepage dynamic