Add error pages
Fixed note empty bug
Add condition to activity for stock