pause option added and implemented