separated dismiss and refresh functionality