setting icon in tab navigation
code cleanup: added comments, and relocated some methods
using security token to prevent save, edit and post_file requests from random sites