corrected attach button and errors on compose page