implemented refresh/titlebar stuff