fixed variable handling and added form css for index