added option menu functionality