Improves Upload button behaviour