public js & toolbar