define([
    'jquery',
    'underscore',
    'backbone',
    'app',
    'text!templates/header/headerTemplate.html'
], function($, _, Backbone, app, headerTemplate) {

    var HeaderView = Backbone.View.extend({

        el: $("#header"),

        initialize: function() {
            _.bindAll(this, 'onLoginStatusChange', 'render', 'onPositionProject');

            // Listen for session logged_in state changes and re-render
            app.session.on("change:logged_in", this.onLoginStatusChange);
            app.session.on("change:project_id", this.onPositionProject);
        },

        events: {
            "click #logout-link": "onLogoutClick",
            "click #remove-account-link": "onRemoveAccountClick"
        },

        onLoginStatusChange: function(evt) {
            this.render();
            var logged_in = app.session.get("logged_in");
            if (logged_in) {
                //app.showAlert("Success!", "Logged in as " + app.session.user.get('name'), "success");
                //Backbone.history.navigate('/#/projects');
                //window.location = '/#/projects';
            }
            /*else 
            {
              else app.showAlert("See ya!", "Logged out successfully", "success");
            }*/
        },

        onLogoutClick: function(evt) {
            evt.preventDefault();
            app.session.logout({}); // No callbacks needed b/c of session event listening
            Backbone.history.navigate("#/signin", {
                trigger: true
            });
        },

        onRemoveAccountClick: function(evt) {
            evt.preventDefault();
            //app.session.removeAccount({});
        },

        onPositionProject: function(evt) {
            this.render();
        },

        render: function() {
            // data to be passed to UI
            var data = {
                logged_in: app.session.get("logged_in"),
                project_id: app.session.get('project_id'),
                user: app.session.user.toJSON()
            };
            // render the template
            var compiledTemplate = _.template(headerTemplate, data);

            // update the HTML element of this view
            this.$el.html(compiledTemplate);

            // dropdown menus
            $('.ui.dropdown')
                .dropdown()
            ;

            return this;
        }
    });

    return HeaderView;

});
@@ -329,29 +329,8 @@
 der'
-, 'onPositionProject'
 );%0A%0A
@@ -479,81 +479,8 @@
 e);%0A
-            app.session.on(%22change:project_id%22, this.onPositionProject);%0A
     
@@ -1580,90 +1580,8 @@
 %7D,%0A%0A
-        onPositionProject: function(evt) %7B%0A            this.render();%0A        %7D,%0A%0A
     

Remove onPositionProject method