Set variable to be session username
Change from jinja to javascript if/else
Use variable to determine how much the scroll should be offset
Comment out surrounding code as the check is not neeed
Move call details toggle to a function to allow it to be initialized
Move submit api call to a function to allow it to be initialized
Initalize toggle details and api call submit
Initialize toggle details and call submit