Patched Reply button

Fixes redirect illegal operation on reply and new thread
Added checks to attachment