fixed bug where screen elements not set on page refresh