ui fixes, rewrite upload plugin